<template>
    <div>
        <div class="pageTitle">
            <div class="left">
                <div class="pagename">
                    <span v-for="(item, index) in $route.meta.list" :key="index" class="nameitem"> {{ item }} <span>/</span> </span>{{ $route.meta.title }}
                </div>
                <div class="selects">
                    <span>账期</span>
                    <el-date-picker v-model="value1" type="date" placeholder="Pick a day" />
                </div>
            </div>
            <div class="pagetechnology">导出月账单(含公章)</div>
        </div>
        <div class="cont">
            <el-card class="card1">
                <div class="title">账单汇总</div>
                <div class="list">
                    <div>消费汇总</div>
                    <span>￥0.00</span>
                </div>
                <div class="list">
                    <div>+</div>
                </div>
                <div class="list">
                    <div>退款汇总</div>
                    <span>￥0.00</span>
                </div>
                <div class="list">
                    <div>+</div>
                </div>
                <div class="list total">
                    <div>总费用(应付金额)</div>
                    <span>￥0.00</span>
                </div>
                <div class="constitute">
                    <div class="titles">总费用构成</div>
                    <div class="tip">您本月没有费用产生</div>
                </div>
            </el-card>
            <el-card class="card2">
                <div class="title">消费分布</div>
                <div class="classify">
                    <div class="item">产品类型</div>
                </div>
                <div class="tip">
                    <el-image class="img" :src="require('@/assets/image/Shopping-cart-del.png')" fit="fill" />
                    <div>您本月没有产生费用</div>
                </div>
            </el-card>
        </div>
    </div>
</template>
<script lang="ts" setup>
import { defineProps, computed } from "vue";
interface Props {
    type?: string;
}
const props = withDefaults(defineProps<Props>(), {
    // 默认1
    type: "1",
});
</script>
<style lang="scss" scoped>
.pageTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    .left {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .pagename {
            font-size: 16px;
            font-weight: 500;
            color: #333333;
            margin-right: 30px;
            .nameitem {
                color: #999999;
                span {
                    margin-right: 5px;
                }
            }
        }
        .selects {
            color: #666666;
            font-size: 12px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            span {
                margin-right: 5px;
            }
        }
    }

    .pagetechnology {
        width: 140px;
        height: 30px;
        background: #333333;
        border-radius: 25px 25px 25px 25px;
        color: #ffffff;
        text-align: center;
        line-height: 30px;
        font-size: 12px;
        cursor: pointer;
    }
}
.cont {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    .card1 {
        width: 415px;
        margin-right: 20px;
        .title {
            margin-bottom: 50px;
        }
        .list {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            margin-bottom: 10px;
            span {
                color: #000000;
            }
        }
        .total {
            span {
                font-size: 20px;
            }
        }
        .constitute {
            margin-top: 30px;
            border-top: 1px dashed #bebebe;
            padding-top: 30px;
            .tip {
                margin-top: 30px;
                text-align: center;
                font-size: 12px;
                color: #999999;
                margin-bottom: 25px;
            }
        }
    }
    .card2 {
        width: 100%;
        .classify {
            margin-top: 30px;
            border-bottom: 1px solid #bebebe;
            display: flex;
            .item {
                position: relative;
                padding-bottom: 10px;
                &::before {
                    content: "";
                    position: absolute;
                    width: 100%;
                    height: 2px;
                    background: #333333;
                    bottom: 0;
                    left: 0;
                }
            }
        }
        .tip {
            text-align: center;
            padding-top: 80px;
            padding-bottom: 125px;
            font-size: 12px;
            color: #999999;
            .img {
                width: 50px;
                height: 47px;
            }
        }
    }
}
</style>
